import requests


class HttpMethods:
    url = "https://httpbin.testing-studio.com/"

    def get(self,params):
        get_url = self.url + "get"
        r = requests.get(url = get_url,params=params)
        return r

    def post(self,params,json):
        post_url =  self.url + "post"
        r = requests.post(url=post_url,params=params,json=json)
        return r

    def get_query(self,params):
        post_url = self.url + "get"
        r = requests.get(url=post_url,params=params)
        return r
